import Request from '@/utils/request';


const API_PREFIX = '/business/api';
const PATH = '/agent';


export class AgentApi {


  /**
   * 新增
   */
  static add(params) {
    return Request.post(API_PREFIX + PATH + '/add', params);
  }

  /**
   * 删除
   */
  static del(params) {
    return Request.post(API_PREFIX + PATH + '/delete', params);
  }

  /**
   * 批量删除
   */
  static batchDel(params) {
    return Request.post(API_PREFIX + PATH + '/batchDelete', params);
  }

  /**
   * 修改
   */
  static edit(params) {
    return Request.post(API_PREFIX + PATH + '/edit', params);
  }

  /**
   * 查看详情
   */
  static detail(params) {
    return Request.post(API_PREFIX + PATH + '/detail', params);
  }

  /**
   * 更新状态
   */
  static updateStatus(params) {
    return Request.post(API_PREFIX + PATH + '/updateStatus', params);
  }

  static findList(params) {
    return Request.get(API_PREFIX + PATH + '/findList', params);
  }

  static findRegionList(params) {
    return Request.get(API_PREFIX + PATH + '/getRegions', params);
  }

  static findPage(params) {
    return Request.get(API_PREFIX + PATH + '/findPage', params);
  }

}
